@import "reset.css";
@import "../font/iconfont.css";
body{
    max-width: 7.5rem;
    margin: 0 auto;
}
// 标题栏
#title{
    height: .64rem;
    display: flex;
    background: #ff6040;
    color: #ffdfd8;
    padding: .44rem .12rem .32rem .3rem;
    align-items: center;
    
    h2{
        font-size: .3rem;
        margin: 0 1.23rem 0 2.4rem;
    }

    span{
        font-size: .5rem;
    }

    p{
        width: 1.72rem;
        height: .62rem;
        border: 1px solid #ff8a6f;
        border-radius: .3rem;
        position: relative;
        display: flex;
        justify-content: space-around;
        align-items: center;

        span{
            &:nth-child(1){
                font-size: .4rem;
            }
            &:nth-child(2){
                font-size: .3rem;
            }
        }
        
        i{
            width: 1px;
            height: .37rem;
            background:#ff8a6f; 
            position: absolute;
            top: .12rem;
            left: .86rem;
        }
    }
}
// 头部
header{
    height: .64rem;
    padding: 0 .23rem 0 .25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: linear-gradient(#ff6040,#ff7c6a) ;
    span{
        font-size: .44rem !important;
    }
    b{
        font-size: .4rem !important;
    }
    h1{
        img{
            width: 1.84rem;
        }
    }
    input{
        width: 3.36rem;
        height: .6rem;
        border: 2px solid #e6e6e6;
        border-radius: .05rem;
        padding-left: .22rem;
        &::placeholder{
            font-size: .26rem;
        }
    }
}
// 导航部分
#nav-top{
    height: .83rem;
    padding-top: .16rem;
    background: linear-gradient(#ff745e,#ff887d);
    display: flex;
    font-size: .26rem;
    align-items: center;

    nav{
        display: flex;
        width:6.2rem;
        height: .6rem;
        background: url(../images/line.jpg) no-repeat right .1rem;
        padding: 0 .16rem 0 .21rem;
        justify-content: space-between;
        align-items: center;
        position: relative;

        a{
            color: #fff3f2;
            &.cur{
                font-size: .3rem;
                color: #fff;
                &::before{
                    content: "";
                    display: block;
                    width: .4rem;
                    height: .04rem;
                    background: #fff;
                    border-radius: .03rem;
                    position: absolute;
                    left: .31rem;
                    bottom:-.12rem;

                }
            }
        }
    }

    p{
        width: 1.3rem;
        color: #fff;
        text-align: center;
        line-height: .6rem;
        span{
            vertical-align: bottom;
        }
    }
}
// 背景区
#banner{
    img{
        width: 100%;
        height: 4.25rem;
    }
}
// 分类区classify
#classify{
    height: 1.73rem;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    p{
        img{
            width: .6rem;
            margin-left: .1rem;
            margin: auto;
        }
        span{
            font-size: .18rem;
            color: #6c6c6c;
        }
    }
}
// 限时抢购区
#time{
    height: 3.5rem;
    margin: .2rem;
    display: flex;
    justify-content: space-between;
    .left{
        width: 3.5rem;
        height: 3.5rem;
        background: url(../images/shop_bg1.png) no-repeat;
        background-size: cover;
        
        .top{
            width: 3.5rem;
            height: .72rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: .22rem .3rem .22rem .23rem;
            box-sizing: border-box;
            line-height: .72rem;

            h3{
                font-size: .3rem;
                color: #85a642;
                font-weight: bold;  
            }

            p{
                font-size: .18rem;
                color: #5a5b58;
                    em{
                        color: #333;
                        font-size: .18rem;
                    }
            } 
        }

        span{
            font-size: .18rem;
            color: #b3cd7d;
            margin-left: .21rem;
        }

        .hour{
            display: flex;
            margin: .1rem 0 0 .2rem;
            
            i{
                width:.1rem;
                text-align: center; 
                color: #8cac4c;
            }

            b{
                width: .32rem;
                height: .36rem;
                background:linear-gradient(#88a845,#b1cc7a);
                color: #fff;
                text-align: center;
                line-height: .36rem;
            }
        }
    }

    .right{

        .top{
            width: 3.5rem;
            height: 1.7rem;
            background: url(../images/shop_bg2.png);
            background-size: cover;
            margin-bottom: .1rem;

            h3{
                font-size: .3rem;
                color: #ff6040;
                font-weight: bold;
                line-height: .74rem;
                margin-left: .22rem
            }

            p{
                font-size: .18rem;
                color: #ff9a86;
                margin-left: .21rem;
            }

            img{
                height: .4rem;
                margin-top: .08rem;
                margin-left: .2rem; 
            }
        }

        .bottom{
            width: 3.5rem;
            height: 1.7rem;
            background: url(../images/shop_bg3.png);
            background-size: cover;

            h3{
                font-size: .3rem;
                color: #ff6040;
                font-weight: bold;
                line-height: .74rem;
                margin-left: .22rem
            }

            p{
                font-size: .18rem;
                color: #ff9a86;
                margin-left: .21rem;
            }

            img{
                height: .4rem;
                margin-top: .08rem;
                margin-left: .2rem; 
            }
        }
    }
}
// 主体部分
main{
    margin: 0 .2rem 1.66rem;
    background: #fff;
    padding: 0 .2rem;
    overflow: auto;
    .head{
        height: .74rem;
        display: flex;
        position: relative;
        
        h4{
            font-size: .26rem;
            color:#b3b3b3;
            line-height: .74rem;
            &.cur{
                font-size: .3rem;
                color: #ff6040;
                margin: 0 2.07rem 0 .74rem;
            }
        }
        img{
            height: .74rem;
            position: absolute;
            left: 3.3rem;
            top: 0;
        }
    }
    ul{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        li{
            margin-top: .1rem;
            img{
            width: 1.6rem;
            }
        }
    }
}
// 页脚
footer{
    width: 7.5rem;
    height: 1.66rem;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    position: fixed;
    bottom: 0;
    left: 50%;
    margin-left: -3.75rem;
    background: #fff;
    
    p{
        display: flex;
        flex-direction:column;
        font-size: .18rem;
        color: #a1a1a1;
        text-align: center;
        margin-top: .14rem;

        i{
            font-size: .5rem !important;
            color: #999;
        }

        &.cur{
            color: #ff6040;
            i{
                color: #ff6040;
            }
        }
    }
}
